﻿<%@ Page Language="c#" CodeFile="event_view_popup.aspx.cs" AutoEventWireup="false"
    Inherits="calendar.event_view_popup.event_view_popupPage" ResponseEncoding="iso-8859-1" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Import Namespace="calendar.event_view_popup" %>
<%@ Import Namespace="calendar.Configuration" %>
<%@ Import Namespace="calendar.Data" %>
<%@ Register TagPrefix="CC" Namespace="calendar.Controls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>
        <asp:Literal ID="event_name" runat="server" /></title>
    <link media="screen" href="Styles/<%=PageStyleName%>/Style.css" type="text/css" rel="stylesheet">
    <link media="print" href="ccsprint.css" type="text/css" rel="stylesheet">
    <script language="JavaScript">
        function parent_redirect(url) {
            window.opener.location.href = unescape(url);
            self.close();
        }
    </script>
    <script language="JavaScript" type="text/javascript">
        //Begin CCS script
        //End CCS script
    </script>
</head>
<body>
    <form id="Form1" runat="server">
    <asp:Repeater ID="eventGridRepeater" OnItemCommand="eventGridItemCommand" OnItemDataBound="eventGridItemDataBound"
        runat="server">
        <HeaderTemplate>
        </HeaderTemplate>
        <ItemTemplate>
            <table class="Header" cellspacing="0" cellpadding="0" border="0">
                <tr>
                    <td class="HeaderLeft">
                        <img src='<%#"Styles/" + PageStyleName + "/Images/Spacer.gif"%>' border="0">
                    </td>
                    <th>
                        <asp:Literal ID="eventGridevent_title" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).event_title.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                            runat="server" />
                    </th>
                    <td class="HeaderRight">
                        <img src='<%#"Styles/" + PageStyleName + "/Images/Spacer.gif"%>' border="0">
                    </td>
                </tr>
            </table>
            <table class="Grid" cellspacing="0" cellpadding="0">
                <tr class="Row">
                    <td>
                        <b>
                            <asp:Literal ID="eventGridevent_date" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).event_date.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                            <asp:Literal ID="eventGridevent_time" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).event_time.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                            <asp:Literal ID="eventGridevent_time_end" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).event_time_end.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                        </b>
                        <br>
                        <asp:PlaceHolder ID="eventGridPanelCategory" Visible="True" runat="server">
                            <%=Resources.strings.cal_category%>:
                            <asp:Literal ID="eventGridgroup_id" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).group_id.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />.
                            <br>
                        </asp:PlaceHolder>
                        <%=Resources.strings.cal_addedby%>:
                        <asp:Literal ID="eventGriduser_id" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).user_id.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                            runat="server" /><br>
                        <br>
                        <asp:Literal ID="eventGridevent_desc" Text='<%# ((eventGridItem)Container.DataItem).event_desc.GetFormattedValue() %>'
                            runat="server" />
                        <asp:PlaceHolder ID="eventGridPanelTextArea3" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelTextArea3" Visible=false runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_TextArea3" Visible=false Text='<%# ((eventGridItem)Container.DataItem).custom_TextArea3.GetFormattedValue()  %>'  runat="server" />
                            <a  target="_blank"" HRef='<%# "../../archivos/Calendario/" +((eventGridItem)Container.DataItem).custom_TextArea3.GetFormattedValue() %>' >
                                <dx:ASPxImage ID="ASPxImage1" runat="server" Width=150px Height=150px ImageUrl='<%# ((eventGridItem)Container.DataItem).custom_TextArea3.GetFormattedValue() != "" ? "../../archivos/Calendario/" +((eventGridItem)Container.DataItem).custom_TextArea3.GetFormattedValue() : ""  %>'>
                                <EmptyImage Url="../../images/No disponible.jpg">
                                 </EmptyImage>
                            </dx:ASPxImage>
                            </a>
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelLocation" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelLocation" runat="server" />:</b>
                            <asp:Literal ID="eventGridevent_location" Text='<%# ((eventGridItem)Container.DataItem).event_location.GetFormattedValue() %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelCost" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelCost" runat="server" />:</b>
                            <asp:Literal ID="eventGridevent_cost" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).event_cost.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelURL" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelURL" runat="server" />:</b> <a id="eventGridevent_url"
                                    href="" runat="server">
                                    <%#((eventGridItem)Container.DataItem).event_url.GetFormattedValue()%></a>
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelTextBox1" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelTextBox1" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_TextBox1" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).custom_TextBox1.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelTextBox2" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelTextBox2" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_TextBox2" Text='<%# ((eventGridItem)Container.DataItem).custom_TextBox2.GetFormattedValue() %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelTextBox3" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelTextBox3" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_TextBox3" Text='<%# ((eventGridItem)Container.DataItem).custom_TextBox3.GetFormattedValue() %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelTextArea1" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelTextArea1" runat="server" /></b>
                            <asp:Literal ID="eventGridcustom_TextArea1" Text='<%# ((eventGridItem)Container.DataItem).custom_TextArea1.GetFormattedValue() %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelTextArea2" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelTextArea2" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_TextArea2" Text='<%# ((eventGridItem)Container.DataItem).custom_TextArea2.GetFormattedValue() %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelCheckBox1" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelCheckBox1" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_CheckBox1" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).custom_CheckBox1.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelCheckBox2" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelCheckBox2" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_CheckBox2" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).custom_CheckBox2.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                        </asp:PlaceHolder>
                        <asp:PlaceHolder ID="eventGridPanelCheckBox3" Visible="True" runat="server">
                            <br>
                            <br>
                            <b>
                                <asp:Literal ID="eventGridLabelCheckBox3" runat="server" />:</b>
                            <asp:Literal ID="eventGridcustom_CheckBox3" Text='<%# Server.HtmlEncode(((eventGridItem)Container.DataItem).custom_CheckBox3.GetFormattedValue()).Replace("\r","").Replace("\n","<br>") %>'
                                runat="server" />
                        </asp:PlaceHolder>
                    </td>
                </tr>
                <asp:PlaceHolder ID="IterationContainer" runat="server" />
        </ItemTemplate>
        <FooterTemplate>
            <asp:PlaceHolder ID="eventGridedit" Visible="True" runat="server">
                <tr class="Row">
                    <td align="right">
                        <a id="eventGridedit_event" href="" runat="server">
                            <%#Resources.strings.cal_edit_event%></a>
                    </td>
                </tr>
            </asp:PlaceHolder>
            <asp:PlaceHolder ID="NoRecords" Visible="False" runat="server">
                <tr class="NoRecords">
                    <td>
                        <%=Resources.strings.CCS_NoRecords%>
                    </td>
                </tr>
            </asp:PlaceHolder>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <br>
    <div class="noprint" align="left">
        <a id="close_link" href="" runat="server">
            <%#Resources.strings.close_window%></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="print_link"
                href="" runat="server"><%#Resources.strings.print%></a>
    </div>
    </form>
</body>
</html>


